From: Christoph Egger Date: Tue, 24 Apr 2012 17:16:30 +0000 (+0100) Subject: tools/blktap: fix build error w/o MEMSHR X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=1b06fa4b199855e76b607f4a1e0dd5c598f97d37;p=xen.git tools/blktap: fix build error w/o MEMSHR Do not include memshr.h when MEMSHR is not defined. Fixes build error when MEMSHR is disabled. Signed-off-by: Christoph Egger Acked-by: Ian Jackson Committed-by: Ian Jackson --- diff --git a/tools/blktap/drivers/blktapctrl.c b/tools/blktap/drivers/blktapctrl.c index db6dab5f3c..445d2a0863 100644 --- a/tools/blktap/drivers/blktapctrl.c +++ b/tools/blktap/drivers/blktapctrl.c @@ -50,7 +50,9 @@ #include #include #include +#ifdef MEMSHR #include +#endif #include #include "blktaplib.h"